Built-in register function for solution developers
This plug-in has a built-in 'register function', intended for database (solution) developers that make shrinkwrap databases. This makes distribution of your databases easier.
How this works?
You can register this plug-in from a database file by calling the plug-in's External "Version" function with the registration string as a parameter. This means that your solution has to call this function everytime the database needs the functionality
, usually in a ScriptMaker script step when opening the solution. You need to copy these scriptmaker steps in your solution.
Below is a sample calculation that shows the how to register the plug-in. See also the RegSample.fp3 file for an example on this process.
External("TrXX-Version";
"#BEGIN Registered-To: Your Name
Paid for: Troi FM Plug-in Macintosh
Number of users: 1
#SIGNATURE A1234-yyyyyyyyyyyyyyyyyyyyyyyy
#END")
Here are the ScriptMaker steps:
---------------------------
Status(CurrentPlatform) = 1
Comment [We are on Mac OS: register for MacOS]
Set Field [gVersion, External("TrXX-Version"; gMac RegString) ]
Comment [We are on Windows: register for Win]
Set Field [gVersion, External("TrXX-Version"; gWin RegString) ]
End If
IMPORTANT
- This is just a sample registration string. You have to change the registration string to the actual string you were given when you registered.
gMac RegString
and
gWin RegString
are global fields
that hold the registration strings.
- For each plug-in you have registered you must call the correct registration function with the registration string for that plug-in.
- If you have both a MacOS and a Windows license you must call the registration function with the string for that platform.
- TrXX is just a placeholder for the actual function name prefix of that plug-in. Current function name prefixes are:
Prefix Plug-in name
TrDl Troi Dialog Plug-in
TrCo Troi Coding Plu
TrFile Troi File plug-in
TrText Troi Text plug-in
TNum Troi Number plug-in
- The plug-in is only registered while running the FileMaker application. If you stop FileMaker, the registration information is removed.
"#BEGIN Registered-To: Your Name
Paid for: Troi FM Plug-in Macintosh
Number of users: 1
#SIGNATURE A1234-yyyyyyyyyyyyyyyyyyyyyyyy
"#BEGIN Registered-To: Your Name
Paid for: Troi FM Plug-in Macintosh
Number of users: 1
#SIGNATURE A1234-yyyyyyyyyyyyyyyyyyyyyyyy
TrFile
Troi File Plug-in
OPEN FILE and register plug-ins
Register All selected Plug-ins
Check for Coding Plug-in
Register Coding Plug-in
-Register Coding Plug-in (alternative version)
Check for Dialog Plug-in
Register Dialog Plug-in
-Register Dialog Plug-in (alternative version)
Check for File Plug-in
Register File Plug-in
+Register File Plug-in (alternative version)
Check for Grabber Plug-in
Register Grabber Plug-in
.Register Grabber Plug-in (alternative version)
Check for Graphic Plug-in
Register Graphic Plug-in
.Register Graphic Plug-in (alternative version)
Check for Number Plug-in
Register Number Plug-in
&-Register Number Plug-in (alternative version)
Check for Serial Plug-in
Register Serial Plug-in
,-Register Serial Plug-in (alternative version)
Check for Text Plug-in
Register Text Plug-in
2+Register Text Plug-in (alternative version)
Register All Selected Plug-ins\
1998-2000 Troi Automatisering
N0Registering a Plug-in
using the Version Function
gMacOS RegString
gWindows RegString
Y&1- put your own registration data here
plug-ins to check
b<2- select the plug-in you want to test the register function
3- press this button
dkNB: you can put the registration strings for more plug-ins there by concatenating the registration strings.
more...
Helvetica
Geneva
Arial
Times New Roman
Monaco
Courier
Times
Futura
Courier New
Palatino
(LIST
LISTA
Troi Coding Plug-in
Troi Dialog Plug-in
Troi File Plug-in
Troi Text Plug-in
Troi Grabber Plug-in
Troi Graphic Plug-in
Troi Number Plug-in
Troi Serial Plug-in
VDEFA(
plugin names
Register Dialog Plug-in
A%Registers the license of the plug-in B6This is an example for registering the Dialog plug-in.C+
) = 1
We are on Mac OS...E*... register Troi Dialog plug-in for MacOSF?
|("TrDl-Version"
TrDl-Version
We are on Windows...H,... register Troi Dialog plug-in for Windows
Check for Dialog Plug-in
A=Now check if this is the correct plug-in, and if it is activeB<
|("TrDl-Version"
TrDl-Version
19 ) <> "Troi Dialog Plug-in"
Troi Dialog Plug-in
) = 1
Canceld
Troi Dialog Plug-in not found. Please put the Troi Dialog Plug-in into the Extensions folder inside the FileMaker folder.
Also enable all the plug-ins under the application preferences.
|("TrDl-Version"
TrDl-Version
E|J/If registration was successful a 0 is returned.K'
$ = 0
T X)
fExtend
X/
Cancel|
X/pThe Dialog plug-in is registered.
(Normally you don't want to show this dialog so I suggest you remove this dialog)M
T X)
fExtend
X/
Cancel|
X/pRegistration of Dialog plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in.N
End of registration
OPEN FILE and register plug-ins
o{o{o{
o{o{o{o{
Cancel
o{o{o{o{o{o{o{
{o{o{o{
This file has a startup script 'open file' that will register the plug-in.
Registration will start now...B
o{o{o{
o{o{o{o{
Cancel
o{o{o{o{o{o{o{
{o{o{o{
Please note that you need to register the plug-in EACH time FileMaker is started.
tA-Register Dialog Plug-in (alternative version)
A&Registers the license of the plug-in. B,In this version the registration data is ...C
... stored in the script.
Canceld
Troi Dialog Plug-in not found. Please put the Troi Dialog Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
Register File Plug-in
A%Registers the license of the plug-in B4This is an example for registering the File plug-in.C+
) = 1
We are on Mac OS...E(... register Troi File plug-in for MacOSFC
|("TrFile-Version"
TrFile-Version
We are on Windows...H*... register Troi File plug-in for WindowsIC
|("TrFile-Version"
TrFile-Version
E|J/If registration was successful a 0 is returned.K'
$ = 0
D7You need to add returns '
' to the registration string.E+
) = 1
F$We are on Mac OS: register for MacOS
|("TrDl-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
TrDl-Version
x#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|H#We are on Windows: register for Win
|("TrDl-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
TrDl-Version
|#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|J
End of registration
wA+Register File Plug-in (alternative version)
A&Registers the license of the plug-in. B,In this version the registration data is ...C
... stored in the script. D7You need to add returns '
' to the registration string.E+
) = 1
F$We are on Mac OS: register for MacOS
|("TrFile-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
TrFile-Version
x#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|H#We are on Windows: register for Win
T X)
fExtend
X/
Cancel|
X/pThe File plug-in is registered.
(Normally you don't want to show this dialog so I suggest you remove this dialog)M
T X)
fExtend
X/
Cancel|
X/pRegistration of File plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in.N
End of registration
Register All selected Plug-ins
A/This script will register all checked plug-ins.B]
"Troi Coding Plug-in") > 0
Troi Coding Plug-inG
C&We need to check the Coding plug-in...D]
"Troi Dialog Plug-in") > 0
Troi Dialog Plug-inG
E&We need to check the dialog plug-in...
|("TrFile-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
TrFile-Version
|#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|J
End of registration
Check for File Plug-in
A=Now check if this is the correct plug-in, and if it is activeB@
|("TrFile-Version"
TrFile-Version
17 ) <> "Troi File Plug-in"
Troi File Plug-in
) = 1
Canceld
Troi File Plug-in not found. Please put the Troi File Plug-in into the Extensions folder inside the FileMaker folder.
Also enable all the plug-ins under the application preferences.
"Troi File Plug-in") > 0
Troi File Plug-inG
G$We need to check the file plug-in...H_
"Troi Grabber Plug-in") > 0
Troi Grabber Plug-inG
"Troi Graphic Plug-in") > 0
Troi Graphic Plug-inG
"Troi Number Plug-in") > 0
Troi Number Plug-inG
"Troi Serial Plug-in") > 0
Troi Serial Plug-inG
"Troi Text Plug-in") > 0
Troi Text Plug-inG
M$We need to check the Text plug-in...
Check for Text Plug-in
A=Now check if this is the correct plug-in, and if it is activeB@
|("TrText-Version"
TrText-Version
17 ) <> "Troi Text Plug-in"
Troi Text Plug-in
) = 1
Canceld
Troi Text Plug-in not found. Please put the Troi Text Plug-in into the Extensions folder inside the FileMaker folder.
Also enable all the plug-ins under the application preferences.
Canceld
Troi File Plug-in not found. Please put the Troi File Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
Register Text Plug-in
A%Registers the license of the plug-in B4This is an example for registering the Text plug-in.C+
) = 1
We are on Mac OS...E(... register Troi Text plug-in for MacOSFC
|("TrText-Version"
TrText-Version
We are on Windows...H$... register the plug-in for WindowsIC
|("TrText-Version"
TrText-Version
E|J/If registration was successful a 0 is returned.K'
$ = 0
Canceld
Troi Text Plug-in not found. Please put the Troi Text Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
~A+Register Text Plug-in (alternative version)
A&Registers the license of the plug-in. B,In this version the registration data is ...C
... stored in the script. D7You need to add returns '
' to the registration string.E+
) = 1
F$We are on Mac OS: register for MacOS
|("TrText-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
TrText-Version
x#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|H#We are on Windows: register for Win
T X)
fExtend
X/
Cancel|
X/pThe Text plug-in is registered.
(Normally you don't want to show this dialog so I suggest you remove this dialog)M
T X)
fExtend
X/
Cancel|
X/pRegistration of Text plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in.N
End of registration
Check for Coding Plug-in
A=Now check if this is the correct plug-in, and if it is activeB<
|("TrCo-Version"
TrCo-Version
19 ) <> "Troi Coding Plug-in"
Troi Coding Plug-in
) = 1
Canceld
Troi Coding Plug-in not found. Please put the Troi Coding Plug-in into the Extensions folder inside the FileMaker folder.
Also enable all the plug-ins under the application preferences.
|("TrText-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
TrText-Version
|#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|J
End of registration
Register Coding Plug-in
A%Registers the license of the plug-in B6This is an example for registering the Coding plug-in.C+
) = 1
We are on Mac OS...E#... register this plug-in for MacOSF?
|("TrCo-Version"
TrCo-Version
We are on Windows...H*... register this Troi plug-in for WindowsI?
|("TrCo-Version"
TrCo-Version
E|J/If registration was successful a 0 is returned.K'
$ = 0
Canceld
Troi Coding Plug-in not found. Please put the Troi Coding Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
A-Register Coding Plug-in (alternative version)
A&Registers the license of the plug-in. B,In this version the registration data is ...C
... stored in the script. D7You need to add returns '
' to the registration string.E+
) = 1
F$We are on Mac OS: register for MacOS
|("TrCo-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
TrCo-Version
x#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|H#We are on Windows: register for Win
T X)
fExtend
X/
Cancel|
X/pThe Coding plug-in is registered.
(Normally you don't want to show this dialog so I suggest you remove this dialog)M
T X)
fExtend
X/
Cancel|
X/pRegistration of Coding plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in.N
End of registration
Check for Grabber Plug-in
A=Now check if this is the correct plug-in, and if it is activeB<
|("Grab-Version"
Grab-Version
15 ) <> "Grabber Plug-in"
Grabber Plug-in
) = 1
Canceld
Troi Grabber Plug-in not found. Please put the Troi Grabber Plug-in into the Extensions folder inside the FileMaker folder.
Also enable all the plug-ins under the application preferences.
|("TrCo-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
TrCo-Version
|#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|J
End of registration
Register Grabber Plug-in
A%Registers the license of the plug-in B7This is an example for registering the Grabber plug-in.C+
) = 1
We are on Mac OS...E+... register Troi Grabber plug-in for MacOSF?
|("Grab-Version"
Grab-Version
We are on Windows...H$... register the plug-in for WindowsI?
|("Grab-Version"
Grab-Version
E|J/If registration was successful a 0 is returned.K'
$ = 0
Canceld
Troi Grabber Plug-in not found. Please put the Troi Grabber Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
A.Register Grabber Plug-in (alternative version)
A&Registers the license of the plug-in. B,In this version the registration data is ...C
... stored in the script. D7You need to add returns '
' to the registration string.E+
) = 1
F$We are on Mac OS: register for MacOS
|("Grab-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
Grab-Version
x#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|H#We are on Windows: register for Win
T X)
fExtend
X/
Cancel|
X/pThe Grabber plug-in is registered.
(Normally you don't want to show this dialog so I suggest you remove this dialog)M
T X)
fExtend
X/
Cancel|
X/pRegistration of Grabber plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in.N
End of registration
Check for Graphic Plug-in
A=Now check if this is the correct plug-in, and if it is activeB<
|("Trgr-Version"
Trgr-Version
20 ) <> "Troi Graphic Plug-in"
Troi Graphic Plug-in
) = 1
Canceld
Troi Graphic Plug-in not found. Please put the Troi Graphic Plug-in into the Extensions folder inside the FileMaker folder.
Also enable all the plug-ins under the application preferences.
|("Grab-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
Grab-Version
|#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|J
End of registration
Register Graphic Plug-in
A%Registers the license of the plug-in B7This is an example for registering the Graphic plug-in.C+
) = 1
We are on Mac OS...E+... register Troi Graphic plug-in for MacOSF?
|("Trgr-Version"
Trgr-Version
We are on Windows...H$... register the plug-in for WindowsI?
|("Trgr-Version"
Trgr-Version
E|J/If registration was successful a 0 is returned.K'
$ = 0
Canceld
Troi Graphic Plug-in not found. Please put the Troi Graphic Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
A.Register Graphic Plug-in (alternative version)
A&Registers the license of the plug-in. B,In this version the registration data is ...C
... stored in the script. D7You need to add returns '
' to the registration string.E+
) = 1
F$We are on Mac OS: register for MacOS
|("Trgr-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
Trgr-Version
x#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|H#We are on Windows: register for Win
T X)
fExtend
X/
Cancel|
X/pThe Graphic plug-in is registered.
(Normally you don't want to show this dialog so I suggest you remove this dialog)M
T X)
fExtend
X/
Cancel|
X/pRegistration of Graphic plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in.N
End of registration
Check for Number Plug-in
A=Now check if this is the correct plug-in, and if it is activeB<
|("Tnum-Version"
Tnum-Version
19 ) <> "Troi Number Plug-in"
Troi Number Plug-in
) = 1
Canceld
Troi Number Plug-in not found. Please put the Troi Number Plug-in into the Extensions folder inside the FileMaker folder.
Also enable all the plug-ins under the application preferences.
|("Trgr-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN Windows REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
Trgr-Version
|#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN Windows REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|J
End of registration
Register Number Plug-in
A%Registers the license of the plug-in B6This is an example for registering the Number plug-in.C+
) = 1
We are on Mac OS...E*... register Troi Number plug-in for MacOSF?
|("Tnum-Version"
Tnum-Version
We are on Windows...H$... register the plug-in for WindowsI?
|("Tnum-Version"
Tnum-Version
E|J/If registration was successful a 0 is returned.K'
$ = 0
Canceld
Troi Number Plug-in not found. Please put the Troi Number Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
A-Register Number Plug-in (alternative version)
A&Registers the license of the plug-in. B,In this version the registration data is ...C
... stored in the script. D7You need to add returns '
' to the registration string.E+
) = 1
F$We are on Mac OS: register for MacOS
|("Tnum-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
Tnum-Version
x#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|H#We are on Windows: register for Win
T X)
fExtend
X/
Cancel|
X/pThe Number plug-in is registered.
(Normally you don't want to show this dialog so I suggest you remove this dialog)M
T X)
fExtend
X/
Cancel|
X/pRegistration of Number plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in.N
End of registration
Check for Serial Plug-in
A=Now check if this is the correct plug-in, and if it is activeB@
|("Serial-Version"
Serial-Version
14 ) <> "Serial Plug-in"
Serial Plug-in
) = 1
Canceld
Troi Serial Plug-in not found. Please put the Troi Serial Plug-in into the Extensions folder inside the FileMaker folder.
Also enable all the plug-ins under the application preferences.
|("Tnum-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
Tnum-Version
|#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN WINDOWS REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|J
End of registration
Register Serial Plug-in
A%Registers the license of the plug-in B6This is an example for registering the Serial plug-in.C+
) = 1
We are on Mac OS...E*... register Troi Serial plug-in for MacOSFC
|("Serial-Version"
Serial-Version
We are on Windows...H$... register the plug-in for WindowsIC
|("Serial-Version"
Serial-Version
E|J/If registration was successful a 0 is returned.K'
$ = 0
Canceld
Troi Serial Plug-in not found. Please put the Troi Serial Plug-in into the SYSTEM directory inside the FileMaker directory.
Also enable all the plug-ins under the application preferences.
A-Register Serial Plug-in (alternative version)
A&Registers the license of the plug-in. B,In this version the registration data is ...C
... stored in the script. D7You need to add returns '
' to the registration string.E+
) = 1
F$We are on Mac OS: register for MacOS
|("Serial-Version"
"#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx
#END")
Serial-Version
x#BEGIN
Registered-To: DEMO REGISTRATION
PUT YOUR OWN MAC REGISTRATION HERE
#SIGNATURE A12345-xxxxxxxxxxxxxxxx #END|H#We are on Windows: register for Win
T X)
fExtend
X/
Cancel|
X/pThe Serial plug-in is registered.
(Normally you don't want to show this dialog so I suggest you remove this dialog)M
T X)
fExtend
X/
Cancel|
X/pRegistration of Serial plug-in failed.
Please use your own registration data and make sure you are registering with the correct plug-in.N